<div ng-include src="'tpl/public/header.html?1'"></div>
<div class="contents">
  <form class="form-horizontal" role="form" name="form" novalidate ng-submit="save()">

    <div class="form-group">
      <button type="button" class="btn btn-default" ng-click="addLenders();">添加交易对手</button>
    </div>

    <div class="form-group" style="border-bottom: 15px #ccc solid;" ng-repeat="l in lenders" ng-init="p_index=$index">
      <table style="" class="table table-bordered">
        <tr>
          <td colspan="1" class="tc" width="100" style="width:100px;padding:0px;">
            <button type="button" class="btn btn-default" ng-click="deleteLenders($index);">删除</button>
          </td>
          <td colspan="3" class="tc">基本信息</td>
        </tr>
        <tr class="h40" style="padding:0px;">
          <td class="w130" style="padding:0px 0px 0px 5px;line-height:40px">注册号</td>
          <td style="padding:0px;">
            <input type="text" class="form-control" style="margin-top:3px" 
            autocomplete="off" name="zch" ng-model="l.zch" placeholder="最多20字">
          </td>
          <td class="w130" style="padding:0px 0px 0px 5px;line-height:40px">公司名称</td>
          <td style="padding:0px;">
            <input type="text" class="form-control" style="margin-top:3px" 
            autocomplete="off" name="gsmc" ng-model="l.gsmc" placeholder="最多30字">
          </td>
        </tr>
        <tr class="h40" style="padding:0px;">
          <td class="w130" style="padding:0px 0px 0px 5px;line-height:40px">类型</td>
          <td style="padding:0px;">
            <input type="text" class="form-control" style="margin-top:3px" 
            autocomplete="off" name="lx" ng-model="l.lx" placeholder="最多30字">
          </td>
          <td class="w130" style="padding:0px 0px 0px 5px;line-height:40px">法定代表</td>
          <td style="padding:0px;">
            <input type="text" class="form-control" style="margin-top:3px" 
            autocomplete="off" name="fddb" ng-model="l.fddb" placeholder="最多10字">
          </td>
        </tr>
        <tr class="h40" style="padding:0px;">
          <td class="w130" style="padding:0px 0px 0px 5px;line-height:40px">住所</td>
          <td colspan="3" style="padding:0px;">
            <input type="text" class="form-control" style="margin-top:3px" 
            autocomplete="off" name="zs" ng-model="l.zs" placeholder="最多100字">
          </td>
        </tr>
        <tr class="h40" style="padding:0px;">
          <td class="w130" style="padding:0px 0px 0px 5px;line-height:40px">注册资本(万元)</td>
          <td style="padding:0px;">
            <input type="text" class="form-control" style="margin-top:3px" 
            autocomplete="off" name="zczb" ng-model="l.zczb">
          </td>
          <td class="w130" style="padding:0px 0px 0px 5px;line-height:40px">成立日期</td>
          <td style="padding:0px;">
            <input type="date" class="form-control" autocomplete="off" name="clrq" ng-model="l.clrq" ng-pattern="/^\d{4}-\d{2}-\d{2}$/">
          </td>
        </tr>
        <tr class="h40" style="padding:0px;">
          <td class="w130" style="padding:0px 0px 0px 5px;line-height:40px">经营期限自</td>
          <td style="padding:0px;">
            <input type="date" class="form-control" autocomplete="off" name="jyqxf" ng-model="l.jyqxf" ng-pattern="/^\d{4}-\d{2}-\d{2}$/">
          </td>
          <td class="w130" style="padding:0px 0px 0px 5px;line-height:40px">经营期限至</td>
          <td style="padding:0px;">
            <input type="date" class="form-control" autocomplete="off" name="jyqxt" ng-model="l.jyqxt" ng-pattern="/^\d{4}-\d{2}-\d{2}$/">
          </td>
        </tr>
        <tr style="padding:0px;">
          <td class="w130" style="padding:0px 0px 0px 5px;line-height:40px">经营范围</td>
          <td colspan="3" style="padding:0px;">
            <textarea class="form-control" name="jjfw" ng-model="l.jjfw" placeholder="最多1000字"></textarea>
          </td>
        </tr>
        <tr class="h40" style="padding:0px;">
          <td class="w130" style="padding:0px 0px 0px 5px;line-height:40px">登记机关</td>
          <td style="padding:0px;">
            <input type="text" class="form-control" style="margin-top:3px" 
            autocomplete="off" name="fjjg" ng-model="l.fjjg" placeholder="最多30字">
          </td>
          <td class="w130" style="padding:0px 0px 0px 5px;line-height:40px">核准日期</td>
          <td style="padding:0px;">
            <input type="date" class="form-control" autocomplete="off" name="hzrq" ng-model="l.hzrq" ng-pattern="/^\d{4}-\d{2}-\d{2}$/">
          </td>
        </tr>
        <tr class="h40" style="padding:0px;">
          <td class="w130" style="padding:0px 0px 0px 5px;line-height:40px">登记状态</td>
          <td colspan="3" style="padding:0px;">
            <input type="text" class="form-control" style="margin-top:3px" 
            autocomplete="off" name="djzt" ng-model="l.djzt" placeholder="最多100字">
          </td>
        </tr>
        <tbody ng-repeat="i in l.shareHolder">
          <tr class="h40" style="padding:0px;">
            <td colspan="4" class="w130 tc" style="padding:0px 0px 0px 5px;line-height:40px">股东信息{{$index+1}} <button type="button" ng-click="deleteShareHolder(p_index,$index)" class="btn btn-default">删除</button></td>
              <button type="submit" class="btn btn-default">提交</button>
          </tr>
          <tr class="h40" style="padding:0px;">
            <td colspan="4" class="w130" style="padding:0px;line-height:40px">
              <textarea class="form-control" name="gdxx" ng-model="i.gdxx" placeholder="最多1000字"></textarea>
            </td>
          </tr>
          <tr class="h40" style="padding:0px;">
            <td class="w130" style="padding:0px 0px 0px 5px;line-height:40px">股东类型</td>
            <td style="padding:0px;">
              <input type="text" class="form-control" style="margin-top:3px" 
              autocomplete="off" name="gdlx" ng-model="i.gdlx" placeholder="最多30字">
            </td>
            <td class="w130" style="padding:0px 0px 0px 5px;line-height:40px">股东</td>
            <td style="padding:0px;">
              <input type="text" class="form-control" style="margin-top:3px" 
              autocomplete="off" name="gd" ng-model="i.gd" placeholder="最多30字">
            </td>
          </tr>
          <tr class="h40" style="padding:0px;">
            <td class="w130" style="padding:0px 0px 0px 5px;line-height:40px">证照/证件类型</td>
            <td style="padding:0px;">
              <input type="text" class="form-control" style="margin-top:3px" 
              autocomplete="off" name="zjlx" ng-model="i.zjlx" placeholder="最多30字">
            </td>
            <td class="w130" style="padding:0px 0px 0px 5px;line-height:40px">证照/证件号码</td>
            <td style="padding:0px;">
              <input type="text" class="form-control" style="margin-top:3px" 
              autocomplete="off" name="zjhm" ng-model="i.zjhm" placeholder="最多30字">
            </td>
          </tr>
        </tbody>          
        <tr class="h40" style="padding:0px;">
            <td colspan="4" class="w130 tc" style="padding:0px 0px 0px 5px;line-height:40px">
              <button type="button" ng-click="addShareHolder($index)" class="btn btn-default">追加股东信息</button>
            </td>
        </tr>

      </table>
    </div>

    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-5">
        <button type="submit" class="btn btn-default">提交</button>
      </div>
    </div>

  </form>
</div>
<div load-script src="'/static/jquery.jUploader-1.01.js?5'" call-back="" charset="utf-8" ></div>